/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.stock.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 盘点Entity
 * @author 盘点
 * @version 2019-12-21
 */
public class SpdDetail extends DataEntity<SpdDetail> {
	
	private static final long serialVersionUID = 1L;
	private int number;		// 计划数量
	private int factnumber;		// 实际数量
	private Pd pid;		// 盘点id 父类
	private String locid;		// 库位ID
	private String type;		// 货物种类
	private String cl;		// 策略
	private Woods woods;		// 物料id
	
	public SpdDetail() {
		super();
	}

	public SpdDetail(String id){
		super(id);
	}

	public SpdDetail(Pd pid){
		this.pid = pid;
	}

	@Length(min=0, max=11, message="计划数量长度必须介于 0 和 11 之间")
	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}
	
	@Length(min=0, max=11, message="实际数量长度必须介于 0 和 11 之间")
	public int getFactnumber() {
		return factnumber;
	}

	public void setFactnumber(int factnumber) {
		this.factnumber = factnumber;
	}
	
	@Length(min=0, max=255, message="盘点id长度必须介于 0 和 255 之间")
	public Pd getPid() {
		return pid;
	}

	public void setPid(Pd pid) {
		this.pid = pid;
	}
	
	@Length(min=0, max=255, message="库位ID长度必须介于 0 和 255 之间")
	public String getLocid() {
		return locid;
	}

	public void setLocid(String locid) {
		this.locid = locid;
	}
	
	@Length(min=0, max=255, message="货物种类长度必须介于 0 和 255 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=32, message="策略长度必须介于 0 和 32 之间")
	public String getCl() {
		return cl;
	}

	public void setCl(String cl) {
		this.cl = cl;
	}
	
	public Woods getWoods() {
		return woods;
	}

	public void setWoods(Woods woods) {
		this.woods = woods;
	}
	
}